﻿namespace SameGame.Model
{
	public class CItem
	{
		public CItem()
		{
			Location = new CItemLocation(-1, -1);
			PreviousLocation = new CItemLocation(-1, -1);
		}

		public CItem(int color)
		{
			_color = color;
		}

		public CItem(int color, int column, int row)
		{
			_color = color;
			Location = new CItemLocation(column, row);
			PreviousLocation = new CItemLocation(column, row);
		}

		public CItemLocation Location { get; set; }
		public CItemLocation PreviousLocation { get; set; }

		public bool Checked { get; set; }

		public int _color = -1;
		public int _index = -1;
	}
}
